import request from '@/utils/request'

export function selectScoreClassAll(data) {
  return request({
    url: '/selectScoreClassAll',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

export function selectScoreClassA(data) {
  return request({
    url: '/selectScoreClassA',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function selectList(data) {
  return request({
    url: '/listArchiveData',
    method: 'post',
    data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

// 评分管理-增加评分一级类别
export function saveScoreClassA(data) {
  return request({
    url: '/saveScoreClassA',
    method: 'post',
    data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
// 评分管理-更新评分一级类别
export function updateScoreClassA(data) {
  return request({
    url: '/updateScoreClassA',
    method: 'post',
    data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

// 评分管理-增加更新评分X级类别
export function saveOrUpdateScoreClassX(url, data) {
  return request({
    url: url,
    method: 'post',
    data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
// 评分管理-查询评分结论
export function selectScoreConclusion(data) {
  return request({
    url: '/selectScoreConclusion',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

// 评分管理-删除评分结论
export function deleteScoreConclusion( data) {
  return request({
    url: "/deleteScoreConclusion",
    method: 'post',
    params : data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

// 评分管理-增加更新评评分结论
export function saveOrUpdateScoreConclusion(url, data) {
  return request({
    url: url,
    method: 'post',
    data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
